package com.tanjun.mallservice.apiservice.request.shopcar;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import jakarta.validation.constraints.NotNull;

/**
 * 添加购物车请求
 */
@Data
public class SetShopCarVo {
    @NotNull(message = "商品Id不能为空")
    private Long pluId;
    @NotNull(message = "规格Id不能为空")
    private Long skuId;

    @NotNull(message = "数量不能为空")
    @Range(min = 1, max = 99)
    private Integer skuNum;

    /**
     * 是否只添加(添加的时候，直接+，否则就是修改)
     */
    private Boolean isAdd = false;
}
